import './App.css';
import 'antd/dist/reset.css';  // 引入 Ant Design 样式
import React from 'react';
import { RouterProvider } from 'react-router-dom'; // 只需要导入 RouterProvider
import rootRouter from './router/index'; // 确保正确导入路由配置
// react v19和antd v5不兼容问题（https://ant.design/docs/react/v5-for-19-cn）
import '@ant-design/v5-patch-for-react-19';
const App = () => {
  return (
    <div className="app-layout">
      <RouterProvider router={rootRouter} />
    </div>
  );
};

export default App;